#include "main.h"

struct X_CONFIG* xconfig;

char* msg = "Hello World!";

void
test()
{
	printf("test!\n");
}

int
main(void)
{
	xconfig = malloc(sizeof(struct X_CONFIG));
	drw_init(&xconfig);

	struct varg* v = malloc(sizeof(struct varg));
	v = arg_encode("ds", 100, "hello, world!");

	int b;
	char* s;
	arg_decode(v, &b, &s);
	free(v);

	//thread_start(test);

	while(1)
	{
		drw_events(&xconfig);
	}

	drw_deinit(&xconfig);

	free(xconfig);
	return 0;
}
